-- GENERATED SPELL FOR [Blindlight Oracle] --


function spell0_4820(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(6063,pUnit)
pUnit:RegisterEvent('Sorts_4820', 3000, 1)
end

function spell1_4820(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4820', 3000, 1)
end

function spell2_4820(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(8362,pUnit)
pUnit:RegisterEvent('Sorts_4820', 22000, 1)
end

function Sorts_4820(pUnit, Event)
local choix_sorts_4820 = math.random(0, 2)
if choix_sorts_4820 == 0 then
pUnit:RegisterEvent('spell0_4820', 1, 1)
end
if choix_sorts_4820 == 1 then
pUnit:RegisterEvent('spell1_4820', 1, 1)
end
if choix_sorts_4820 == 2 then
pUnit:RegisterEvent('spell2_4820', 1, 1)
end
end

function mob4820_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4820', math.random(1500, 3000), 1)
end

function mob4820_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4820_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4820_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4820, 1, 'mob4820_Action')
RegisterUnitEvent(4820, 2, 'mob4820_Leave')
RegisterUnitEvent(4820, 3, 'mob4820_Kill')
RegisterUnitEvent(4820, 4, 'mob4820_Die')
